package chapter5.No5_1_定时器Timer的使用.demo5;

import java.util.Date;
import java.util.TimerTask;

/**
 * Created by Administrator on 2016/11/24.
 */
public class MyTask extends TimerTask {
    @Override
    public void run() {
        System.out.println("进入A方法：" + new Date());
        System.out.println("结束A方法：" + new Date());
    }
}
